import request from '@/utils/request'

//在线离线接口
export function onLineStatus(query) {
  return request({
    url: '/robot/video/Zonline/onLineStatus',
    method: 'get',
    params: query
  })
}

//前摄像头部分
// 前摄校时
export function Qtiming(query) {
  return request({
    url: '/robot/video/ZTimingBbfore/synTimeBefore',
    method: 'get',
    params: query
  })
}

//前摄像头水印
export function Qwatermark(query) {
  return request({
    url: '/robot/video/Zwatermark/fixWaterBefore',
    method: 'get',
    params: query
  })
}

//前摄像头开始录像
export function QstartVideo(query) {
  return request({
    url: '/robot/video/ZhandVideo/startVideoBefore',
    method: 'get',
    params: query
  })
}

//前摄像头停止录像
export function QendVideo() {
  return request({
    url: '/robot/video/ZhandVideo/stopVideoBefore',
    method: 'get',
  })
}

//拍照
export function Qpicture(query) {
  return request({
    url: '/robot/video/ZsnapPicture/synBefore',
    method: 'post',
    params: query
  })
}

//云台向上 开始
export function QptzUp(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlUpStart',
    method: 'post',
    params: query
  })
}

//云台向上 停止
export function QptzUpEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlUpEnd',
    method: 'post',
    params: query
  })
}

//云台向下 开始
export function QptzDown(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlDownStart',
    method: 'post',
    params: query
  })
}

//云台向下 停止
export function QptzDownEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlDownEnd',
    method: 'post',
    params: query
  })
}

//云台向左  开始
export function QptzLeft(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlLeftStart',
    method: 'post',
    params: query
  })
}

//云台向左  停止
export function QptzLeftEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlLeftEnd',
    method: 'post',
    params: query
  })
}

//云台向右  开始
export function QptzRight(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlRightStart',
    method: 'post',
    params: query
  })
}

//云台向右 停止
export function QptzRightEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlRightEnd',
    method: 'post',
    params: query
  })
}

//云台向左上  开始
export function QptzLeftUp(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlLeftUpStart',
    method: 'post',
    params: query
  })
}

//云台向左上  停止
export function QptzLeftUpEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlLeftUpEnd',
    method: 'post',
    params: query
  })
}

//云台向右上 开始
export function QptzRightUp(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlRightUpStart',
    method: 'post',
    params: query
  })
}

//云台向右上  停止
export function QptzRightUpEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlRightUpEnd',
    method: 'post',
    params: query
  })
}

//云台向左下  开始
export function QptzLeftDown(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlLeftDownStart',
    method: 'post',
    params: query
  })
}
//云台向左下  停止
export function QptzLeftDownEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlLeftDownEnd',
    method: 'post',
    params: query
  })
}

//云台向右下 开始
export function QptzRightDown(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlRightDownStart',
    method: 'post',
    params: query
  })
}

//云台向右下 停止
export function QptzRightDownEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlRightDownEnd',
    method: 'post',
    params: query
  })
}

//变倍+ 开始
export function QzoomAdd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlZoomAddStart',
    method: 'post',
    params: query
  })
}
//变倍+ 结束
export function QzoomAddEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlZoomAddEnd',
    method: 'post',
    params: query
  })
}
//变倍- 开始
export function QzoomDec(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlZoomDecStart',
    method: 'post',
    params: query
  })
}
//变倍-结束
export function QzoomDecEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlZoomDecEnd',
    method: 'post',
    params: query
  })
}

//变焦+开始
export function QfocusAdd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlFocusAddStart',
    method: 'post',
    params: query
  })
}
//变焦+结束
export function QfocusAddEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlFocusAddEnd',
    method: 'post',
    params: query
  })
}

//变焦-开始
export function QfocusDec(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlFocusDecStart',
    method: 'post',
    params: query
  })
}
//变焦-结束
export function QfocusDecEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlFocusDecEnd',
    method: 'post',
    params: query
  })
}

//光圈+开始
export function QirisAdd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlIrisAddStart',
    method: 'post',
    params: query
  })
}
//光圈+结束
export function QirisAddEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlIrisAddEnd',
    method: 'post',
    params: query
  })
}

//光圈-开始
export function QirisDec(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlIrisDecStart',
    method: 'post',
    params: query
  })
}
//光圈-结束
export function QirisDecEnd(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlIrisDecEnd',
    method: 'post',
    params: query
  })
}





//后摄像头部分
// 后摄校时
export function Htiming(query) {
  return request({
    url: '/robot/video/ZTimingAfter/synTimeAfter',
    method: 'get',
    params: query
  })
}

//后摄像头水印
export function Hwatermark(query) {
  return request({
    url: '/robot/video/Zwatermark/fixWaterAfter',
    method: 'get',
    params: query
  })
}

//后摄像头开始录像
export function HstartVideo(query) {
  return request({
    url: '/robot/video/ZhandVideo/startVideoAfter',
    method: 'get',
    params: query
  })
}

//后摄像头停止录像
export function HendVideo() {
  return request({
    url: '/robot/video/ZhandVideo/stopVideoAfter',
    method: 'get',
  })
}

//后拍照
export function Hpicture(query) {
  return request({
    url: '/robot/video/ZsnapPicture/synAfter',
    method: 'post',
    params: query
  })
}

//云台向上 开始
export function HptzUp(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlUpStart',
    method: 'post',
    params: query
  })
}

//云台向上 停止
export function HptzUpEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlUpEnd',
    method: 'post',
    params: query
  })
}

//云台向下 开始
export function HptzDown(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlDownStart',
    method: 'post',
    params: query
  })
}

//云台向下 停止
export function HptzDownEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlDownEnd',
    method: 'post',
    params: query
  })
}

//云台向左  开始
export function HptzLeft(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlLeftStart',
    method: 'post',
    params: query
  })
}

//云台向左  停止
export function HptzLeftEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlLeftEnd',
    method: 'post',
    params: query
  })
}

//云台向右  开始
export function HptzRight(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlRightStart',
    method: 'post',
    params: query
  })
}

//云台向右 停止
export function HptzRightEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlRightEnd',
    method: 'post',
    params: query
  })
}

//云台向左上  开始
export function HptzLeftUp(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlLeftUpStart',
    method: 'post',
    params: query
  })
}

//云台向左上  停止
export function HptzLeftUpEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlLeftUpEnd',
    method: 'post',
    params: query
  })
}

//云台向右上 开始
export function HptzRightUp(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlRightUpStart',
    method: 'post',
    params: query
  })
}

//云台向右上  停止
export function HptzRightUpEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlRightUpEnd',
    method: 'post',
    params: query
  })
}

//云台向左下  开始
export function HptzLeftDown(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlLeftDownStart',
    method: 'post',
    params: query
  })
}
//云台向左下  停止
export function HptzLeftDownEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlLeftDownEnd',
    method: 'post',
    params: query
  })
}

//云台向右下 开始
export function HptzRightDown(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlRightDownStart',
    method: 'post',
    params: query
  })
}

//云台向右下 停止
export function HptzRightDownEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlRightDownEnd',
    method: 'post',
    params: query
  })
}

//变倍+ 开始
export function HzoomAdd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlZoomAddStart',
    method: 'post',
    params: query
  })
}
//变倍+ 结束
export function HzoomAddEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlZoomAddEnd',
    method: 'post',
    params: query
  })
}
//变倍- 开始
export function HzoomDec(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlZoomDecStart',
    method: 'post',
    params: query
  })
}
//变倍-结束
export function HzoomDecEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlZoomDecEnd',
    method: 'post',
    params: query
  })
}

//变焦+开始
export function HfocusAdd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlFocusAddStart',
    method: 'post',
    params: query
  })
}
//变焦+结束
export function HfocusAddEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlFocusAddEnd',
    method: 'post',
    params: query
  })
}

//变焦-开始
export function HfocusDec(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlFocusDecStart',
    method: 'post',
    params: query
  })
}
//变焦-结束
export function HfocusDecEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlFocusDecEnd',
    method: 'post',
    params: query
  })
}

//光圈+开始
export function HirisAdd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlIrisAddStart',
    method: 'post',
    params: query
  })
}
//光圈+结束
export function HirisAddEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlIrisAddEnd',
    method: 'post',
    params: query
  })
}

//光圈-开始
export function HirisDec(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlIrisDecStart',
    method: 'post',
    params: query
  })
}
//光圈-结束
export function HirisDecEnd(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlIrisDecEnd',
    method: 'post',
    params: query
  })
}


///////////////云台长按事件入口/////////
export function QptzUp1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlUpStart1',
    method: 'post',
    params: query
  })
}

//云台向上 停止
export function QptzUpEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlUpEnd1',
    method: 'post',
    params: query
  })
}

//云台向下 开始
export function QptzDown1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlDownStart1',
    method: 'post',
    params: query
  })
}

//云台向下 停止
export function QptzDownEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlDownEnd1',
    method: 'post',
    params: query
  })
}

//云台向左  开始
export function QptzLeft1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlLeftStart1',
    method: 'post',
    params: query
  })
}

//云台向左  停止
export function QptzLeftEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlLeftEnd1',
    method: 'post',
    params: query
  })
}

//云台向右  开始
export function QptzRight1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlRightStart1',
    method: 'post',
    params: query
  })
}

//云台向右 停止
export function QptzRightEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlRightEnd1',
    method: 'post',
    params: query
  })
}


//云台向左上  开始
export function QptzLeftUp1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlLeftUpStart1',
    method: 'post',
    params: query
  })
}

//云台向左上  停止
export function QptzLeftUpEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlLeftUpEnd1',
    method: 'post',
    params: query
  })
}

//云台向右上 开始
export function QptzRightUp1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlRightUpStart1',
    method: 'post',
    params: query
  })
}

//云台向右上  停止
export function QptzRightUpEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlRightUpEnd1',
    method: 'post',
    params: query
  })
}

//云台向左下  开始
export function QptzLeftDown1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlLeftDownStart1',
    method: 'post',
    params: query
  })
}
//云台向左下  停止
export function QptzLeftDownEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlLeftDownEnd1',
    method: 'post',
    params: query
  })
}

//云台向右下 开始
export function QptzRightDown1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlRightDownStart1',
    method: 'post',
    params: query
  })
}

//云台向右下 停止
export function QptzRightDownEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlRightDownEnd1',
    method: 'post',
    params: query
  })
}
//变倍+ 开始
export function QzoomAdd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlZoomAddStart1',
    method: 'post',
    params: query
  })
}
//变倍+ 结束
export function QzoomAddEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlZoomAddEnd1',
    method: 'post',
    params: query
  })
}
//变倍- 开始
export function QzoomDec1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlZoomDecStart1',
    method: 'post',
    params: query
  })
}
//变倍-结束
export function QzoomDecEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlZoomDecEnd1',
    method: 'post',
    params: query
  })
}

//变焦+开始
export function QfocusAdd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlFocusAddStart1',
    method: 'post',
    params: query
  })
}
//变焦+结束
export function QfocusAddEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlFocusAddEnd1',
    method: 'post',
    params: query
  })
}

//变焦-开始
export function QfocusDec1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlFocusDecStart1',
    method: 'post',
    params: query
  })
}
//变焦-结束
export function QfocusDecEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlFocusDecEnd1',
    method: 'post',
    params: query
  })
}

//光圈+开始
export function QirisAdd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlIrisAddStart1',
    method: 'post',
    params: query
  })
}
//光圈+结束
export function QirisAddEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlIrisAddEnd1',
    method: 'post',
    params: query
  })
}

//光圈-开始
export function QirisDec1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlIrisDecStart1',
    method: 'post',
    params: query
  })
}
//光圈-结束
export function QirisDecEnd1(query) {
  return request({
    url: '/robot/video/ZbeforePTZ/ptzControlIrisDecEnd1',
    method: 'post',
    params: query
  })
}

///////////大华后摄像头长按////////////////

//云台向上 开始
export function HptzUp1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlUpStart1',
    method: 'post',
    params: query
  })
}

//云台向上 停止
export function HptzUpEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlUpEnd1',
    method: 'post',
    params: query
  })
}

//云台向下 开始
export function HptzDown1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlDownStart1',
    method: 'post',
    params: query
  })
}

//云台向下 停止
export function HptzDownEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlDownEnd1',
    method: 'post',
    params: query
  })
}

//云台向左  开始
export function HptzLeft1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlLeftStart1',
    method: 'post',
    params: query
  })
}

//云台向左  停止
export function HptzLeftEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlLeftEnd1',
    method: 'post',
    params: query
  })
}

//云台向右  开始
export function HptzRight1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlRightStart1',
    method: 'post',
    params: query
  })
}

//云台向右 停止
export function HptzRightEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlRightEnd1',
    method: 'post',
    params: query
  })
}

//云台向左上  开始
export function HptzLeftUp1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlLeftUpStart1',
    method: 'post',
    params: query
  })
}

//云台向左上  停止
export function HptzLeftUpEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlLeftUpEnd1',
    method: 'post',
    params: query
  })
}

//云台向右上 开始
export function HptzRightUp1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlRightUpStart1',
    method: 'post',
    params: query
  })
}

//云台向右上  停止
export function HptzRightUpEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlRightUpEnd1',
    method: 'post',
    params: query
  })
}

//云台向左下  开始
export function HptzLeftDown1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlLeftDownStart1',
    method: 'post',
    params: query
  })
}
//云台向左下  停止
export function HptzLeftDownEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlLeftDownEnd1',
    method: 'post',
    params: query
  })
}

//云台向右下 开始
export function HptzRightDown1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlRightDownStart1',
    method: 'post',
    params: query
  })
}

//云台向右下 停止
export function HptzRightDownEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlRightDownEnd1',
    method: 'post',
    params: query
  })
}

//变倍+ 开始
export function HzoomAdd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlZoomAddStart1',
    method: 'post',
    params: query
  })
}
//变倍+ 结束
export function HzoomAddEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlZoomAddEnd1',
    method: 'post',
    params: query
  })
}
//变倍- 开始
export function HzoomDec1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlZoomDecStart1',
    method: 'post',
    params: query
  })
}
//变倍-结束
export function HzoomDecEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlZoomDecEnd1',
    method: 'post',
    params: query
  })
}

//变焦+开始
export function HfocusAdd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlFocusAddStart1',
    method: 'post',
    params: query
  })
}
//变焦+结束
export function HfocusAddEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlFocusAddEnd1',
    method: 'post',
    params: query
  })
}

//变焦-开始
export function HfocusDec1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlFocusDecStart1',
    method: 'post',
    params: query
  })
}
//变焦-结束
export function HfocusDecEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlFocusDecEnd1',
    method: 'post',
    params: query
  })
}

//光圈+开始
export function HirisAdd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlIrisAddStart1',
    method: 'post',
    params: query
  })
}
//光圈+结束
export function HirisAddEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlIrisAddEnd1',
    method: 'post',
    params: query
  })
}

//光圈-开始
export function HirisDec1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlIrisDecStart1',
    method: 'post',
    params: query
  })
}
//光圈-结束
export function HirisDecEnd1(query) {
  return request({
    url: '/robot/video/ZafterPTZ/ptzControlIrisDecEnd1',
    method: 'post',
    params: query
  })
}


